package Test;

public class HashBuckKV <K,V>{

    public static final float DEFAULT_LOAD_FACTOR = 0.75F;
    public int usedSize;
    public Node<K,V>[] elem;



    public HashBuckKV() {
        this.elem = (Node<K, V>[]) new Node[11];
        this.usedSize = 0;
    }

    class Node<K,V> {
        K k;
        V v;
        Node<K,V> next;

        public Node(K k, V v) {
            this.k = k;
            this.v = v;
        }
    }

    public void put (K k, V v) {
        if (getLoadFactoc()) {
//            grow();
        }
    }



    public boolean getLoadFactoc () {
        return !((float) usedSize / elem.length > DEFAULT_LOAD_FACTOR);
    }
}
